package com.lht.testDemo;

import org.junit.Test;

import java.util.ArrayList;

/**
 * @author Eric
 * @version 1.0
 * @date 2019-09-24
 */
public class FunctionalInterfaceTest {

    @Test
    public void test() throws Exception{
//        Demo d = m -> {
//            System.out.println(m);
////            throw  new Exception("你好");
//        };
//        d.say("hello world");

    }

}

@FunctionalInterface
interface Demo{
    void say(String msg);
}
